#!/bin/bash
#
read -p "文件名称：" name
if [ -f $name ]; then
	if grep "^$" $name &> /dev/null;then
		number=$(grep "^$" $name |wc -l)
		echo "文件$name空行数量为：$number"
	else
		echo "文件$name不存在空行"
	fi
else 
	echo "文件$name不存在"
fi
